package com.song.service;

import org.apache.dubbo.config.annotation.DubboService;

import java.util.StringJoiner;

/**
 * @ClassName : JavaFrameWorkServiceAnno
 * @Author : 司猫子
 * @Date: 2021/2/26 22:53
 */
@DubboService(interfaceClass = JavaFrameWorkName.class,register = false,timeout = 5000)
public class JavaFrameWorkServiceAnno implements JavaFrameWorkName{
    public String queryFrameWorkName(String type) {
        StringJoiner joiner = new StringJoiner(":","{","}");
        if ("web".equals(type)){
            joiner.add("springMVC").add("Jfinal").add("JSF");
        }else if("db".equals(type)){
            joiner.add("mybatis").add("mybatis-plus").add("jpa");
        }
        return joiner.toString();
    }
}
